
Ext.define("PrjAPLean.view.bcd.poquery.QueryForm",{
    extend: "Ext.panel.Panel",

    requires: [
        "PrjAPLean.view.bcd.poquery.QueryFormController",
        "PrjAPLean.view.bcd.poquery.QueryFormModel"
    ],

    controller: "bcd-poquery-queryform",
    viewModel: {
        type: "bcd-poquery-queryform"
    },

    title: "PO查询",
    titleAlign: "center",
    layout: {
        type: "table",
        columns: 6,
        tableAttrs: {
            style: {
                width: '100%'
            }
        }
    },
    items: [{
        xtype: "label",
        flex: 1,
        text: "Year"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "Year",
        store: ["1", "2", "3"],
        bind: "{paRegion}"
    }, {
        xtype: "label",
        flex: 1,
        text: "Status"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "Status",
        store: ["1", "2", "3"],
        bind: "{paCategory}"
    }, {
        xtype: "label",
        flex: 1,
        text: "PO No."
    }, {
        xtype: "textfield",
        flex: 1,
        itemId: "PONO",
        bind: "{paRegionFunctionTeam}"
    }, {
        xtype: "label",
        flex: 1,
        text: "PO Description"
    }, {
        xtype: "textfield",
        flex: 1,
        itemId: "poDescription",
        bind: "{paActivityGroup}"
    }, {
        xtype: "label",
        flex: 1,
        text: "PA Owner"
    }, {
        xtype: "textfield",
        flex: 1,
        itemId: "paOwner",
        bind: "{paProjectBudget}"
    }, {
        xtype: "label",
        flex: 1,
        text: "Region"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "Region",
        store: ["1", "2", "3"],
        bind: "{paProjectBudget}"
    }, {
        xtype: "label",
        flex: 1,
        text: "Category"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "Category",
        store: ["1", "2", "3"],
        bind: "{paProjectBudget}"
    }, {
        xtype: "label",
        flex: 1,
        text: "Function Team"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "FunctionTeam",
        store: ["1", "2", "3"],
        bind: "{paProjectBudget}"
    }, {
        xtype: "label",
        flex: 1,
        text: "Activity Group"
    }, {
        xtype: "combobox",
        flex: 1,
        itemId: "ActivityGroup",
        store: ["1", "2", "3"],
        bind: "{paProjectBudget}"
    }]
});
